package com.ruoyi.patrol.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 安全隐患上报对象VO
 *
 * @author zwq
 * @date 2023-02-22
 */
public class PtSafetyHazardReportingVO extends BaseEntity {
    /**
     * 统计总数
     */
    public static class PtSafetyHazardReportingVOTotal {
        private Long total;
        private Long complete;

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }

        public Long getComplete() {
            return complete;
        }

        public void setComplete(Long complete) {
            this.complete = complete;
        }

    }

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 学校id
     */
    private Long schoolId;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String schoolName;

    /**
     * 上报人
     */
    @Excel(name = "上报人")
    private String submitter;

    /**
     * 安全隐患级别(0：重大，1：较大，2：一般)
     */
    @Excel(name = "安全隐患级别(0：重大，1：较大，2：一般)", readConverterExp = "0=重大,1=较大,2=一般")
    private Long safetyHazardLevel;

    /**
     * 安全隐患原因
     */
    @Excel(name = "安全隐患原因")
    private String safetyHazardReason;

    /**
     * 隐患应对措施
     */
    @Excel(name = "隐患应对措施")
    private String hazardCopeMeasures;

    /**
     * 附件
     */
    @Excel(name = "手机图片网络地址")
    private String fileUrl;

    @Excel(name = "整改状态(0：整改中，1：整改完成，-1：未整改)", readConverterExp = "0=整改中,1=整改完成,-1=未整改")
    private Long statetype;

    @Excel(name = "隐患发现时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date findtime;

    @Excel(name = "隐患处理完成时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date completetime;

    @Excel(name = "附件地址")
    private String filePath;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getStatetype() {
        return statetype;
    }

    public void setStatetype(Long statetype) {
        this.statetype = statetype;
    }

    public Date getFindtime() {
        return findtime;
    }

    public void setFindtime(Date findtime) {
        this.findtime = findtime;
    }

    public Date getCompletetime() {
        return completetime;
    }

    public void setCompletetime(Date completetime) {
        this.completetime = completetime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSubmitter(String submitter) {
        this.submitter = submitter;
    }

    public String getSubmitter() {
        return submitter;
    }

    public void setSafetyHazardLevel(Long safetyHazardLevel) {
        this.safetyHazardLevel = safetyHazardLevel;
    }

    public Long getSafetyHazardLevel() {
        return safetyHazardLevel;
    }

    public void setSafetyHazardReason(String safetyHazardReason) {
        this.safetyHazardReason = safetyHazardReason;
    }

    public String getSafetyHazardReason() {
        return safetyHazardReason;
    }

    public void setHazardCopeMeasures(String hazardCopeMeasures) {
        this.hazardCopeMeasures = hazardCopeMeasures;
    }

    public String getHazardCopeMeasures() {
        return hazardCopeMeasures;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("schoolId", getSchoolId())
                .append("submitter", getSubmitter())
                .append("safetyHazardLevel", getSafetyHazardLevel())
                .append("safetyHazardReason", getSafetyHazardReason())
                .append("hazardCopeMeasures", getHazardCopeMeasures())
                .append("fileUrl", getFileUrl())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("schoolName", getSchoolName())
                .toString();
    }
}
